﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IsmlTools.Common;
using IsmlTools.Dal.SQL;
using IsmlTools.Model;
using IsmlTools.Service;

namespace IsmlTools.Bil
{
    public class InitializeDb
    {
        private NameHelper _namehelper = null;

        public void Initialize()
        {
            //SaveSeasonName();
            LoadPreliminary();
        }

        public void SaveSeasonName()
        {
            _namehelper = new NameHelper();
            
            _namehelper.SaveSeasonName(WebPageLink.NamesSeason2012);
            //namehelper.SaveSeasonName(WebPageLink.NamesSeason2013);

        }

        public void LoadPreliminary()
        {
            _namehelper = new NameHelper();

            //2012年
            IResultManager resultsmanager = new PreliminaryResult();

            resultsmanager.SaveResult();
            

            

        }
    }
}
